#!/bin/bash

nomLib='libClient.so'

cd Client

gcc -c client.c Function.c entities.c


if [ "$?" != 0 ]; then
	echo "probleme de compilation\n"
	exit
fi

gcc -shared -o $nomLib client.o Function.o entities.o

cd ..

./diplomacy_cap_0.2.1.0 -s Client/$nomLib

